package com.wjh.mirna.controller;

import com.wjh.mirna.http.Response;
import com.wjh.mirna.model.Mirna;
import com.wjh.mirna.service.impl.MirnaServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/mirna")
public class MirnaController {
    @Autowired
    MirnaServiceImpl mirnaService;
    @GetMapping("/queryMirna")
    public Response queryMirna(){
        List<Mirna> mirnas = mirnaService.selectMirna();
        return Response.ok(mirnas);
    }
}
